package com.haixiaoke.saas.lock.service;

import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.lock.domain.LockFace;
import com.haixiaoke.saas.lock.domain.LockPwd;

import java.util.List;

/**
 * 锁密码授权Service接口
 * 
 * @author panda
 * @date 2025-06-26
 */
public interface ILockPwdService {
    /**
     * 查询锁密码授权
     * 
     * @param pwdId 锁密码授权主键
     * @return 锁密码授权
     */
    LockPwd selectLockPwdByPwdId(Long pwdId);

    /**
     * 查询锁密码授权列表
     * 
     * @param lockPwd 锁密码授权
     * @return 锁密码授权集合
     */
    List<LockPwd> selectLockPwdList(LockPwd lockPwd);

    /**
     * 新增锁密码授权
     * 
     * @param lockPwd 锁密码授权
     * @return 结果
     */
    AjaxResult insertLockPwd(LockPwd lockPwd);

    /**
     * 修改锁密码授权
     * 
     * @param lockPwd 锁密码授权
     * @return 结果
     */
    int updateLockPwd(LockPwd lockPwd);

    /**
     * 批量删除锁密码授权
     * 
     * @param pwdIds 需要删除的锁密码授权主键集合
     * @return 结果
     */
     int deleteLockPwdByPwdIds(Long[] pwdIds);

    /**
     * 删除锁密码授权信息
     * 
     * @param pwdId 锁密码授权主键
     * @return 结果
     */
    AjaxResult deleteLockPwdByPwdId(Long pwdId);

    int deleteLockPwdByLockId(Long lockId);

    AjaxResult editPwdState(Long pwdId);

    List<LockPwd> selectLockListByIdentifications(List<String> identifications);
}
